package uskg.kotoriforest.api;

public class SuperClass { int x = 1;}
interface SuperInterface { int x = 2; int y = 2; }
interface MotherInterface { int x = 3; }

class SubClass extends SuperClass implements SuperInterface, MotherInterface {
    public void method(){
        // System.out.println("x = " + x);//模糊不清
        System.out.println("super.x = " + super.x);
        System.out.println("SuperInterface.x = " + SuperInterface.x);
        System.out.println("MotherInterface.x = " + MotherInterface.x);
        System.out.println("y = " + y);//没有重名问题，可以直接访问
    }

    public static void main(String[] args) {
        new SubClass().method();
    }
}